__author__ = 'East'

class Dog(object):
    '这是狗'
    name = 'ssssssssssssssss'
    def __init__(self, name):
        self.name = name

    @property    # 属性方法，就是把有个方法变成一个静态属性
    def eat(self):
        print('%s is eating %s' % (self.name, 'ss'))

    @eat.setter
    def eat(self, food):
        print('set to food: ', food)

    def talk(self):
        print('%s is talking' % self.name)

print(Dog.__doc__)
d = Dog('ChengRonghua')
d.eat
d.eat = 'baozi'
d.talk()